<?php
class ml_model_guang_sitemap extends Lib_datamodel_db
{
    public function __construct() {
        
        $db_config = ml_factory::load_standard_conf ( 'dbAdmin' );
        
        parent::__construct ( 'sitemap', $db_config ['sitemap'] );
    }

    
    public function get_rid_by_sitemap($table,$ctime=''){
        if(!$table)
        return false;

        $this->init_db();
        if(empty($ctime)){
            $sql = "select `rid` from  ml_content_".$table;
        }
        else{
            $sql = "select `rid` from  ml_content_".$table." where `ctime`>'$ctime'";    
        }

        $rs = $this->fetch($sql);

        return  $rs? $this->_data: null;
    }

    
}
?>